package com.teaching.Controller;


import com.teaching.Dao.StudentDaoAchieve;
import com.teaching.Enity.Student;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;
import java.util.List;

@RestController
public class helloController {

    @GetMapping(value = "/AllStudent")
    public List<Student> Allstudent() throws IOException {
        StudentDaoAchieve studentDaoAchieve = new StudentDaoAchieve();
        return studentDaoAchieve.findAllStudent();
    }

}
